Xbasic
A5_SHORTEN_URL Function
Syntax
Shortened_URL as C = a5_shorten_url(C url [,N length ])
Arguments
- Shortened_URL
A shortened version of the a URL with "..." substituted for elements of the path.
- url
The original URL with full path information. Character
- length
Optional. Default = 30. The maximum number of characters to return. Numeric
Description
The A5_SHORTEN_URL() function shortens a URL to the specified number of characters by truncating the path and inserting "...". The default length is 30. The minimum returned will be the page name with all path information removed.
Example
url = "http://www.alphasoftware.com/products/testimonials.asp" ?a5_shorten_url(url) = "http://www.../testimonials.asp" ?a5_shorten_url(url,50) = "http://www.alphasoftware.com/p.../testimonials.asp" ?a5_shorten_url(url,5) = "testimonials.asp"
See Also